<template>
  <div id="app">
    <!-- --------------------v-if/v-show------------------------>
    <div class="img1">
      <img src="./assets/Neon Pack.jpg" alt="" v-show="flag" /><br />
    </div>
    <button @click="kan()">看不看</button>
    <button @click="xiangkan()">想看</button>
    <button @click="bukan()">不看</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      flag: true,
    }
  },
  methods: {
    kan() {
      this.flag = !this.flag
    },
    hhhage() {
      this.age += 5
    },
    xiangkan() {
      this.flag = true
    },
    bukan() {
      this.flag = false
    },
  },
}
</script>

<style></style>
